import request from "../../../utils/request";
import { getNoticeInfoResponseData, noticeFormData, Notice } from "./type";
enum API {
    // 获取公告信息 POST
    GETNOTICEINFO_URL = '/notice/selectNoticePage',
    // 新增 编辑公告信息 POST
    OPERATENOTICEINFO_URL = '/notice/noticeAdit',
    // 删除公告 POST
    DELETENOTICEINFO_URL = '/notice/noticeDelete'
}
// 发请求
export const reqGetNoticeInfo = (data: noticeFormData) => request.post<any, getNoticeInfoResponseData>(API.GETNOTICEINFO_URL, data)
export const reqOperateNoticeInfo = (data: Notice) => request.post<any, any>(API.OPERATENOTICEINFO_URL, data)
export const reqDeleteNoticeInfo = (data: Notice) => request.post<any, any>(API.DELETENOTICEINFO_URL, data)